FindResult Class

A single match of a find operation. A result knows the objects holding the matched text, so the text can be replaced in place.

Definition

Namespace: Independentsoft.Office.Spreadsheet
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#
public class FindResult
Inheritance
Object    FindResult

Properties

Cell Gets the cell the match belongs to or null if the match does not belong to a cell.
Comment Gets the comment the match belongs to or null if the match does not belong to a comment.
Element Gets the object holding the matched text, for example a Cell or a Run.
HostText Gets the whole text of the cell, comment, header, footer or shape paragraph the match belongs to.
Length Gets the number of matched characters.
Run Gets the first run of the match or null if the matched text is not stored in runs.
Runs Gets all runs the match spans.
Sheet Gets the sheet the match belongs to.
Start Gets the index of the match in the text of the cell, comment, header, footer or shape paragraph.
Story Gets the part of the workbook the match was found in.
Text Gets the matched text.
Worksheet Gets the worksheet the match belongs to or null if the match does not belong to a worksheet.

Methods

Delete Deletes the matched text.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Replace(IListRun) Replaces the matched text with the specified runs.
Replace(Run) Replaces the matched text with the specified run. A cell which holds plain text is converted into a rich text cell, the text before and after the match keeps its format.
Replace(String) Replaces the matched text with the specified text. The format of the cell and the properties of all runs remain unchanged.
ToString Returns a string that represents the current FindResult.
(Overrides ObjectToString)

See Also